# Maintainer: brent s. <bts[at]square-r00t[dot]net>
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
# Contributor:	Arto Jonsson	<kapsi.fi: ajonsson>
# Contributor:	andrewy		<andrewyates.net: andrew>
# Past maintainer:	Jesse Jaara	<gmail: jesse.jaara>

pkgname=memtester
pkgver=4.6.0
pkgrel=1
pkgdesc="A userspace utility for testing the memory subsystem for faults"
arch=('loong64' 'x86_64')
url="http://pyropus.ca/software/memtester/"
license=('GPL2')
depends=('glibc')
source=("http://pyropus.ca/software/memtester/old-versions/${pkgname}-${pkgver}.tar.gz")
sha512sums=('d60dd46a5d4ecb2ab35a5acdb99b714584cdf601b81454e3f7fa9dd224555b7a48cef666538b43c5dd7b2870bb74284e0cae6fb2eed19cf706818c7a955ab161')

build() {
  cd $pkgname-$pkgver
  make
}

package() {
  cd $pkgname-$pkgver

  install -D -m755 memtester "${pkgdir}/usr/bin/memtester"
  install -D -m644 memtester.8 "${pkgdir}/usr/share/man/man8/memtester.8"
}
